home *** CD-ROM | disk | FTP | other *** search
MacBinary | 1994-08-24 | 8.3 KB | [TEXT/KAHL] |
open in:
MacOS 8.1
|
Win98
|
DOS
browse contents |
view JSON data
|
view as text
This file was processed as: MacBinary
(archive/macBinary).
Confidence | Program | Detection | Match Type | Support
|
---|
10%
| dexvert
| MacBinary (archive/macBinary)
| fallback
| Supported |
1%
| dexvert
| Text File (text/txt)
| fallback
| Supported |
100%
| file
| MacBinary II, inited, Wed Aug 24 15:49:40 1994, modified Wed Aug 24 15:49:40 1994, creator Think C, type ASCII, 7605 bytes "Simple Sample.h" , at 0x1e35 534 bytes resource
| default (weak)
| |
99%
| file
| data
| default
| |
74%
| TrID
| Macintosh plain text (MacBinary)
| default
| |
25%
| TrID
| MacBinary 2
| default (weak)
| |
100%
| siegfried
| fmt/1762 MacBinary (II)
| default
| |
100%
| lsar
| MacBinary
| default
|
|
id metadata |
---|
key | value |
---|
macFileType | [TEXT] |
macFileCreator | [KAHL] |
hex view+--------+-------------------------+-------------------------+--------+--------+
|00000000| 00 0f 53 69 6d 70 6c 65 | 20 53 61 6d 70 6c 65 2e |..Simple| Sample.|
|00000010| 68 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |h.......|........|
|00000020| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000030| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00000040| 00 54 45 58 54 4b 41 48 | 4c 01 00 00 00 00 00 00 |.TEXTKAH|L.......|
|00000050| 00 00 00 00 00 1d b5 00 | 00 02 16 aa 81 54 d4 aa |........|.....T..|
|00000060| 81 54 d4 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.T......|........|
|00000070| 00 00 00 00 00 00 00 00 | 00 00 81 81 09 27 00 00 |........|.....'..|
|00000080| 2f 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |/*******|********|
|00000090| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000a0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000b0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000000c0| 2a 2a 2a 2a 2a 2a 0d 0d | 09 53 69 6d 70 6c 65 20 |******..|.Simple |
|000000d0| 53 61 6d 70 6c 65 2e 68 | 0d 09 0d 09 54 68 69 73 |Sample.h|....This|
|000000e0| 20 69 73 20 74 68 65 20 | 68 65 61 64 65 72 20 66 | is the |header f|
|000000f0| 69 6c 65 20 66 6f 72 20 | 74 68 65 20 51 75 69 63 |ile for |the Quic|
|00000100| 6b 44 72 61 77 20 47 58 | 20 61 77 61 72 65 20 73 |kDraw GX| aware s|
|00000110| 61 6d 70 6c 65 2c 0d 09 | 22 53 69 6d 70 6c 65 20 |ample,..|"Simple |
|00000120| 53 61 6d 70 6c 65 20 47 | 58 2e 22 0d 09 0d 09 41 |Sample G|X."....A|
|00000130| 64 64 69 74 69 6f 6e 61 | 6c 20 69 6e 66 6f 20 63 |dditiona|l info c|
|00000140| 61 6e 20 62 65 20 66 6f | 75 6e 64 20 69 6e 20 74 |an be fo|und in t|
|00000150| 68 65 20 72 65 6c 61 74 | 65 64 20 64 65 76 65 6c |he relat|ed devel|
|00000160| 6f 70 20 23 31 39 20 61 | 72 74 69 63 6c 65 2c 0d |op #19 a|rticle,.|
|00000170| 09 22 41 64 64 69 6e 67 | 20 51 75 69 63 6b 44 72 |."Adding| QuickDr|
|00000180| 61 77 20 47 58 20 50 72 | 69 6e 74 69 6e 67 20 74 |aw GX Pr|inting t|
|00000190| 6f 20 51 75 69 63 6b 44 | 72 61 77 20 41 70 70 6c |o QuickD|raw Appl|
|000001a0| 69 63 61 74 69 6f 6e 73 | 2e 22 0d 0d 09 44 61 76 |ications|."...Dav|
|000001b0| 65 20 48 65 72 73 65 79 | 2c 20 41 70 70 6c 65 20 |e Hersey|, Apple |
|000001c0| 44 65 76 65 6c 6f 70 65 | 72 20 54 65 63 68 6e 69 |Develope|r Techni|
|000001d0| 63 61 6c 20 53 75 70 70 | 6f 72 74 2e 0d 09 0d 09 |cal Supp|ort.....|
|000001e0| d1 d1 d1 d1 d1 d1 d1 20 | 45 64 69 74 20 54 72 61 |....... |Edit Tra|
|000001f0| 69 6c 20 d1 d1 d1 d1 d1 | d1 d1 0d 09 0d 09 73 70 |il .....|......sp|
|00000200| 61 77 6e 65 64 3a 09 09 | 09 09 09 09 09 09 09 09 |awned:..|........|
|00000210| 31 2f 32 32 2f 39 34 20 | 20 2d 20 64 6d 68 0d 09 |1/22/94 | - dmh..|
|00000220| 63 6c 65 61 6e 65 64 20 | 75 70 20 66 6f 72 20 32 |cleaned |up for 2|
|00000230| 6e 64 20 64 72 61 66 74 | 20 6f 66 20 64 65 76 65 |nd draft| of deve|
|00000240| 6c 6f 70 20 61 72 74 69 | 63 6c 65 3a 09 33 2f 31 |lop arti|cle:.3/1|
|00000250| 30 2f 39 34 20 20 2d 20 | 64 6d 68 0d 09 63 6c 65 |0/94 - |dmh..cle|
|00000260| 61 6e 65 64 20 75 70 20 | 66 6f 72 20 66 69 6e 61 |aned up |for fina|
|00000270| 6c 3a 09 09 09 09 09 09 | 09 34 2f 31 34 2f 39 34 |l:......|.4/14/94|
|00000280| 20 20 2d 20 64 6d 68 0d | 09 75 6e 69 76 65 72 73 | - dmh.|.univers|
|00000290| 61 6c 69 7a 65 64 3a 09 | 09 09 09 09 09 09 09 09 |alized:.|........|
|000002a0| 38 2f 32 34 2f 39 34 20 | 20 2d 20 64 6d 68 0d 09 |8/24/94 | - dmh..|
|000002b0| 0d 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |.*******|********|
|000002c0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002d0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002e0| 2a 2a 2a 2a 2a 2a 2a 2a | 2a 2a 2a 2a 2a 2a 2a 2a |********|********|
|000002f0| 2a 2a 2a 2a 2a 2a 2f 0d | 0d 23 69 6e 63 6c 75 64 |******/.|.#includ|
|00000300| 65 20 3c 73 74 64 69 6f | 2e 68 3e 09 09 09 09 09 |e <stdio|.h>.....|
|00000310| 09 09 2f 2f 20 52 65 67 | 75 6c 61 72 20 69 6e 74 |..// Reg|ular int|
|00000320| 65 72 66 61 63 65 20 66 | 69 6c 65 73 2e 0d 23 69 |erface f|iles..#i|
|00000330| 6e 63 6c 75 64 65 20 3c | 41 70 70 6c 65 45 76 65 |nclude <|AppleEve|
|00000340| 6e 74 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |nts.h>.#|include |
|00000350| 3c 44 65 73 6b 2e 68 3e | 0d 23 69 6e 63 6c 75 64 |<Desk.h>|.#includ|
|00000360| 65 20 3c 45 76 65 6e 74 | 73 2e 68 3e 0d 23 69 6e |e <Event|s.h>.#in|
|00000370| 63 6c 75 64 65 20 3c 46 | 69 6c 65 73 2e 68 3e 0d |clude <F|iles.h>.|
|00000380| 23 69 6e 63 6c 75 64 65 | 20 3c 46 6f 6e 74 73 2e |#include| <Fonts.|
|00000390| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 47 65 73 |h>.#incl|ude <Ges|
|000003a0| 74 61 6c 74 45 71 75 2e | 68 3e 0d 23 69 6e 63 6c |taltEqu.|h>.#incl|
|000003b0| 75 64 65 20 3c 4d 65 6d | 6f 72 79 2e 68 3e 0d 23 |ude <Mem|ory.h>.#|
|000003c0| 69 6e 63 6c 75 64 65 20 | 3c 50 61 63 6b 61 67 65 |include |<Package|
|000003d0| 73 2e 68 3e 0d 23 69 6e | 63 6c 75 64 65 20 3c 51 |s.h>.#in|clude <Q|
|000003e0| 75 69 63 6b 64 72 61 77 | 2e 68 3e 0d 23 69 6e 63 |uickdraw|.h>.#inc|
|000003f0| 6c 75 64 65 20 3c 52 65 | 73 6f 75 72 63 65 73 2e |lude <Re|sources.|
|00000400| 68 3e 0d 23 69 6e 63 6c | 75 64 65 20 3c 53 74 61 |h>.#incl|ude <Sta|
|00000410| 6e 64 61 72 64 46 69 6c | 65 2e 68 3e 0d 23 69 6e |ndardFil|e.h>.#in|
|00000420| 63 6c 75 64 65 20 3c 54 | 6f 6f 6c 55 74 69 6c 73 |clude <T|oolUtils|
|00000430| 2e 68 3e 0d 23 69 6e 63 | 6c 75 64 65 20 3c 54 79 |.h>.#inc|lude <Ty|
|00000440| 70 65 73 2e 68 3e 0d 23 | 69 6e 63 6c 75 64 65 20 |pes.h>.#|include |
|00000450| 3c 57 69 6e 64 6f 77 73 | 2e 68 3e 0d 0d 23 69 6e |<Windows|.h>..#in|
|00000460| 63 6c 75 64 65 20 3c 67 | 72 61 70 68 69 63 73 20 |clude <g|raphics |
|00000470| 72 6f 75 74 69 6e 65 73 | 2e 68 3e 09 09 09 09 2f |routines|.h>..../|
|00000480| 2f 20 51 75 69 63 6b 44 | 72 61 77 20 47 58 20 69 |/ QuickD|raw GX i|
|00000490| 6e 74 65 72 66 61 63 65 | 20 66 69 6c 65 73 2e 0d |nterface| files..|
|000004a0| 23 69 6e 63 6c 75 64 65 | 20 3c 67 72 61 70 68 69 |#include| <graphi|
|000004b0| 63 73 20 74 6f 6f 6c 62 | 6f 78 2e 68 3e 0d 23 69 |cs toolb|ox.h>.#i|
|000004c0| 6e 63 6c 75 64 65 20 3c | 47 58 45 78 63 65 70 74 |nclude <|GXExcept|
|000004d0| 69 6f 6e 73 2e 68 3e 09 | 09 09 09 09 2f 2f 20 73 |ions.h>.|....// s|
|000004e0| 6f 6d 65 20 47 58 20 68 | 65 61 64 65 72 73 20 63 |ome GX h|eaders c|
|000004f0| 61 6c 6c 65 64 20 74 68 | 69 73 20 65 78 63 65 70 |alled th|is excep|
|00000500| 74 69 6f 6e 73 2e 68 2c | 20 79 6f 75 20 6d 61 79 |tions.h,| you may|
|00000510| 20 6e 65 65 64 20 74 6f | 20 72 65 6e 61 6d 65 20 | need to| rename |
|00000520| 74 68 65 20 66 69 6c 65 | 0d 09 09 09 09 09 09 09 |the file|........|
|00000530| 09 09 09 09 2f 2f 20 69 | 6e 20 79 6f 75 72 20 47 |....// i|n your G|
|00000540| 58 20 66 6f 6c 64 65 72 | 20 66 72 6f 6d 20 65 78 |X folder| from ex|
|00000550| 63 65 70 74 69 6f 6e 73 | 2e 68 20 74 6f 20 47 58 |ceptions|.h to GX|
|00000560| 45 78 63 65 70 74 69 6f | 6e 73 2e 68 0d 23 69 6e |Exceptio|ns.h.#in|
|00000570| 63 6c 75 64 65 20 3c 50 | 72 69 6e 74 69 6e 67 4d |clude <P|rintingM|
|00000580| 61 6e 61 67 65 72 2e 68 | 3e 0d 23 69 6e 63 6c 75 |anager.h|>.#inclu|
|00000590| 64 65 20 3c 50 72 69 6e | 74 69 6e 67 4d 65 73 73 |de <Prin|tingMess|
|000005a0| 61 67 65 73 2e 68 3e 0d | 0d 23 64 65 66 69 6e 65 |ages.h>.|.#define|
|000005b0| 09 6b 4f 53 45 76 65 6e | 74 09 09 09 09 09 61 70 |.kOSEven|t.....ap|
|000005c0| 70 34 45 76 74 09 2f 2a | 20 45 76 65 6e 74 20 75 |p4Evt./*| Event u|
|000005d0| 73 65 64 20 62 79 20 4d | 75 6c 74 69 46 69 6e 64 |sed by M|ultiFind|
|000005e0| 65 72 09 09 09 09 09 2a | 2f 0d 23 64 65 66 69 6e |er.....*|/.#defin|
|000005f0| 65 09 6b 53 75 73 70 65 | 6e 64 52 65 73 75 6d 65 |e.kSuspe|ndResume|
|00000600| 4d 65 73 73 61 67 65 09 | 09 31 09 09 2f 2a 20 48 |Message.|.1../* H|
|00000610| 69 67 68 20 62 79 74 65 | 20 6f 66 20 73 75 73 70 |igh byte| of susp|
|00000620| 65 6e 64 2f 72 65 73 75 | 6d 65 20 65 76 65 6e 74 |end/resu|me event|
|00000630| 20 6d 65 73 73 61 67 65 | 09 2a 2f 0d 23 64 65 66 | message|.*/.#def|
|00000640| 69 6e 65 09 6b 52 65 73 | 75 6d 65 4d 61 73 6b 09 |ine.kRes|umeMask.|
|00000650| 09 09 09 09 31 09 09 2f | 2a 20 42 69 74 20 6f 66 |....1../|* Bit of|
|00000660| 20 6d 65 73 73 61 67 65 | 20 66 69 65 6c 64 20 66 | message| field f|
|00000670| 6f 72 20 72 65 73 75 6d | 65 20 76 73 2e 20 73 75 |or resum|e vs. su|
|00000680| 73 70 65 6e 64 09 2a 2f | 0d 0d 23 64 65 66 69 6e |spend.*/|..#defin|
|00000690| 65 09 09 72 5f 41 62 6f | 75 74 09 09 09 09 31 32 |e..r_Abo|ut....12|
|000006a0| 38 09 09 09 2f 2a 20 4f | 75 72 20 61 70 70 27 73 |8.../* O|ur app's|
|000006b0| 20 22 41 62 6f 75 74 c9 | 22 20 61 6c 65 72 74 20 | "About.|" alert |
|000006c0| 49 44 2e 09 09 09 09 09 | 2a 2f 0d 23 64 65 66 69 |ID......|*/.#defi|
|000006d0| 6e 65 09 09 72 5f 42 61 | 64 43 6f 6e 66 69 67 09 |ne..r_Ba|dConfig.|
|000006e0| 09 09 31 33 30 09 09 09 | 2f 2a 20 4f 75 72 20 61 |..130...|/* Our a|
|000006f0| 70 70 27 73 20 22 42 61 | 64 20 63 6f 6e 66 69 67 |pp's "Ba|d config|
|00000700| 75 72 61 74 69 6f 6e c9 | 22 20 61 6c 65 72 74 20 |uration.|" alert |
|00000710| 49 44 2e 09 09 2a 2f 0d | 23 64 65 66 69 6e 65 09 |ID...*/.|#define.|
|00000720| 09 72 5f 64 6f 63 75 6d | 65 6e 74 50 69 63 74 09 |.r_docum|entPict.|
|00000730| 09 31 32 38 09 09 09 2f | 2a 20 4f 75 72 20 50 49 |.128.../|* Our PI|
|00000740| 43 54 27 73 20 72 65 73 | 6f 75 72 63 65 20 49 44 |CT's res|ource ID|
|00000750| 2e 09 09 09 09 09 09 2a | 2f 0d 23 64 65 66 69 6e |.......*|/.#defin|
|00000760| 65 09 09 72 5f 64 6f 63 | 75 6d 65 6e 74 42 69 74 |e..r_doc|umentBit|
|00000770| 6d 61 70 09 31 32 38 09 | 09 09 2f 2a 20 4f 75 72 |map.128.|../* Our|
|00000780| 20 49 43 4f 4e 27 73 20 | 72 65 73 6f 75 72 63 65 | ICON's |resource|
|00000790| 20 49 44 2e 09 09 09 09 | 09 09 2a 2f 0d 0d 23 64 | ID.....|..*/..#d|
|000007a0| 65 66 69 6e 65 09 09 6b | 4d 79 44 6f 63 43 72 65 |efine..k|MyDocCre|
|000007b0| 61 74 6f 72 09 09 27 53 | 53 61 6d 27 09 09 2f 2a |ator..'S|Sam'../*|
|000007c0| 20 4f 75 72 20 61 70 70 | 27 73 20 63 72 65 61 74 | Our app|'s creat|
|000007d0| 6f 72 2e 09 09 09 09 09 | 09 09 2a 2f 0d 23 64 65 |or......|..*/.#de|
|000007e0| 66 69 6e 65 09 09 6b 4d | 79 44 6f 63 54 79 70 65 |fine..kM|yDocType|
|000007f0| 09 09 09 27 61 44 6f 63 | 27 09 09 2f 2a 20 4f 75 |...'aDoc|'../* Ou|
|00000800| 72 20 64 6f 63 75 6d 65 | 6e 74 20 66 69 6c 65 20 |r docume|nt file |
|00000810| 74 79 70 65 2e 09 09 09 | 09 09 09 2a 2f 0d 23 64 |type....|...*/.#d|
|00000820| 65 66 69 6e 65 09 09 6b | 4d 79 50 61 67 65 43 6f |efine..k|MyPageCo|
|00000830| 75 6e 74 54 79 70 65 09 | 27 50 67 73 3f 27 09 09 |untType.|'Pgs?'..|
|00000840| 2f 2a 20 4f 75 72 20 70 | 61 67 65 20 63 6f 75 6e |/* Our p|age coun|
|00000850| 74 20 72 65 73 6f 75 72 | 63 65 20 74 79 70 65 2e |t resour|ce type.|
|00000860| 09 09 09 09 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |....*/.#|define..|
|00000870| 6b 4d 79 50 61 67 65 43 | 6f 75 6e 74 49 44 09 09 |kMyPageC|ountID..|
|00000880| 32 30 30 30 09 09 2f 2a | 20 4f 75 72 20 70 61 67 |2000../*| Our pag|
|00000890| 65 20 63 6f 75 6e 74 20 | 72 65 73 6f 75 72 63 65 |e count |resource|
|000008a0| 20 49 44 2e 09 09 09 09 | 09 2a 2f 0d 23 64 65 66 | ID.....|.*/.#def|
|000008b0| 69 6e 65 09 09 6b 4d 79 | 50 72 69 6e 74 52 65 63 |ine..kMy|PrintRec|
|000008c0| 54 79 70 65 09 09 27 54 | 48 50 52 27 09 09 2f 2a |Type..'T|HPR'../*|
|000008d0| 20 4f 75 72 20 70 72 69 | 6e 74 20 72 65 63 6f 72 | Our pri|nt recor|
|000008e0| 64 20 72 65 73 6f 75 72 | 63 65 20 74 79 70 65 2e |d resour|ce type.|
|000008f0| 09 09 09 09 2a 2f 0d 23 | 64 65 66 69 6e 65 09 09 |....*/.#|define..|
|00000900| 6b 4d 79 50 72 69 6e 74 | 52 65 63 49 44 09 09 31 |kMyPrint|RecID..1|
|00000910| 30 30 30 09 09 2f 2a 20 | 4f 75 72 20 70 72 69 6e |000../* |Our prin|
|00000920| 74 20 72 65 63 6f 72 64 | 20 72 65 73 6f 75 72 63 |t record| resourc|
|00000930| 65 20 49 44 2e 09 09 09 | 09 2a 2f 0d 23 64 65 66 |e ID....|.*/.#def|
|00000940| 69 6e 65 09 09 6b 4d 79 | 4a 6f 62 54 79 70 65 09 |ine..kMy|JobType.|
|00000950| 09 09 27 46 4a 4f 42 27 | 09 09 2f 2a 20 4f 75 72 |..'FJOB'|../* Our|
|00000960| 20 67 78 4a 6f 62 20 72 | 65 73 6f 75 72 63 65 20 | gxJob r|esource |
|00000970| 74 79 70 65 2e 09 09 09 | 09 09 09 2a 2f 0d 23 64 |type....|...*/.#d|
|00000980| 65 66 69 6e 65 09 09 6b | 4d 79 4a 6f 62 49 44 09 |efine..k|MyJobID.|
|00000990| 09 09 31 30 30 30 09 09 | 2f 2a 20 4f 75 72 20 67 |..1000..|/* Our g|
|000009a0| 78 4a 6f 62 20 72 65 73 | 6f 75 72 63 65 20 49 44 |xJob res|ource ID|
|000009b0| 2e 09 09 09 09 09 09 2a | 2f 0d 23 64 65 66 69 6e |.......*|/.#defin|
|000009c0| 65 09 09 6b 4d 79 46 6f | 72 6d 61 74 49 6e 66 6f |e..kMyFo|rmatInfo|
|000009d0| 54 79 70 65 09 27 46 4c | 53 54 27 09 09 2f 2a 20 |Type.'FL|ST'../* |
|000009e0| 4f 75 72 20 66 6f 72 6d | 61 74 20 6c 69 73 74 20 |Our form|at list |
|000009f0| 63 6f 6c 6c 65 63 74 69 | 6f 6e 20 69 74 65 6d 20 |collecti|on item |
|00000a00| 74 61 67 2e 09 09 09 2a | 2f 0d 23 64 65 66 69 6e |tag....*|/.#defin|
|00000a10| 65 09 09 6b 4d 79 46 6f | 72 6d 61 74 49 6e 66 6f |e..kMyFo|rmatInfo|
|00000a20| 54 61 67 49 44 09 31 30 | 30 30 09 09 2f 2a 20 4f |TagID.10|00../* O|
|00000a30| 75 72 20 66 6f 72 6d 61 | 74 20 6c 69 73 74 20 63 |ur forma|t list c|
|00000a40| 6f 6c 6c 65 63 74 69 6f | 6e 20 69 74 65 6d 20 49 |ollectio|n item I|
|00000a50| 44 2e 09 09 09 2a 2f 0d | 0d 23 64 65 66 69 6e 65 |D....*/.|.#define|
|00000a60| 09 09 6b 47 72 61 70 68 | 69 63 73 48 65 61 70 53 |..kGraph|icsHeapS|
|00000a70| 69 7a 65 09 28 28 6c 6f | 6e 67 29 20 33 30 30 20 |ize.((lo|ng) 300 |
|00000a80| 2a 20 31 30 32 34 29 0d | 23 64 65 66 69 6e 65 09 |* 1024).|#define.|
|00000a90| 09 6b 44 65 66 61 75 6c | 74 54 69 74 6c 65 09 09 |.kDefaul|tTitle..|
|00000aa0| 28 28 63 68 61 72 20 2a | 29 20 22 5c 70 55 6e 74 |((char *|) "\pUnt|
|00000ab0| 69 74 6c 65 64 20 44 6f | 63 75 6d 65 6e 74 22 29 |itled Do|cument")|
|00000ac0| 0d 0d 2f 2f 20 56 61 72 | 69 6f 75 73 20 50 69 63 |..// Var|ious Pic|
|00000ad0| 43 6f 6d 6d 65 6e 74 73 | 3a 0d 0d 23 64 65 66 69 |Comments|:..#defi|
|00000ae0| 6e 65 09 09 50 6f 73 74 | 53 63 72 69 70 74 42 65 |ne..Post|ScriptBe|
|00000af0| 67 69 6e 09 09 31 39 30 | 0d 23 64 65 66 69 6e 65 |gin..190|.#define|
|00000b00| 09 09 50 6f 73 74 53 63 | 72 69 70 74 45 6e 64 09 |..PostSc|riptEnd.|
|00000b10| 09 31 39 31 0d 23 64 65 | 66 69 6e 65 09 09 50 6f |.191.#de|fine..Po|
|00000b20| 73 74 53 63 72 69 70 74 | 48 61 6e 64 6c 65 09 31 |stScript|Handle.1|
|00000b30| 39 32 0d 0d 0d 2f 2a 0d | 09 4d 79 44 6f 63 75 6d |92.../*.|.MyDocum|
|00000b40| 65 6e 74 52 65 63 20 2d | 20 54 68 69 73 20 73 74 |entRec -| This st|
|00000b50| 72 75 63 74 75 72 65 20 | 63 6f 6e 74 61 69 6e 73 |ructure |contains|
|00000b60| 20 69 6e 66 6f 72 6d 61 | 74 69 6f 6e 20 74 68 61 | informa|tion tha|
|00000b70| 74 20 77 65 20 73 74 6f | 72 65 0d 09 61 62 6f 75 |t we sto|re..abou|
|00000b80| 74 20 65 61 63 68 20 64 | 6f 63 75 6d 65 6e 74 20 |t each d|ocument |
|00000b90| 77 65 20 6f 70 65 6e 20 | 6f 72 20 63 72 65 61 74 |we open |or creat|
|00000ba0| 65 2e 20 20 57 65 20 73 | 74 6f 72 65 20 61 20 68 |e. We s|tore a h|
|00000bb0| 61 6e 64 6c 65 20 74 6f | 20 6f 6e 65 0d 09 6f 66 |andle to| one..of|
|00000bc0| 20 74 68 65 73 65 20 62 | 65 61 73 74 69 65 73 20 | these b|easties |
|00000bd0| 69 6e 20 65 61 63 68 20 | 77 69 6e 64 6f 77 27 73 |in each |window's|
|00000be0| 20 72 65 66 43 6f 6e 20 | 66 69 65 6c 64 2e 20 20 | refCon |field. |
|00000bf0| 4e 6f 74 65 20 74 68 61 | 74 20 74 68 65 0d 09 4d |Note tha|t the..M|
|00000c00| 79 44 6f 63 75 6d 65 6e | 74 52 65 63 20 64 61 74 |yDocumen|tRec dat|
|00000c10| 61 20 74 79 70 65 20 69 | 6e 20 74 68 69 73 20 65 |a type i|n this e|
|00000c20| 78 61 6d 70 6c 65 20 69 | 73 20 73 69 6d 70 6c 69 |xample i|s simpli|
|00000c30| 66 69 65 64 20 74 6f 20 | 68 61 6e 64 6c 65 20 61 |fied to |handle a|
|00000c40| 0d 09 6d 61 78 69 6d 75 | 6d 20 6f 66 20 32 30 20 |..maximu|m of 20 |
|00000c50| 70 61 67 65 73 2e 0d 2a | 2f 0d 0d 23 64 65 66 69 |pages..*|/..#defi|
|00000c60| 6e 65 20 6b 4d 61 78 50 | 61 67 65 73 09 32 30 0d |ne kMaxP|ages.20.|
|00000c70| 0d 74 79 70 65 64 65 66 | 20 73 74 72 75 63 74 20 |.typedef| struct |
|00000c80| 4d 79 44 6f 63 75 6d 65 | 6e 74 52 65 63 20 7b 0d |MyDocume|ntRec {.|
|00000c90| 09 09 54 48 50 72 69 6e | 74 09 09 09 64 6f 63 75 |..THPrin|t...docu|
|00000ca0| 6d 65 6e 74 50 72 69 6e | 74 48 64 6c 3b 09 09 09 |mentPrin|tHdl;...|
|00000cb0| 2f 2f 20 50 72 69 6e 74 | 20 52 65 63 6f 72 64 20 |// Print| Record |
|00000cc0| 62 6f 75 6e 64 20 74 6f | 20 74 68 69 73 20 64 6f |bound to| this do|
|00000cd0| 63 75 6d 65 6e 74 2e 0d | 09 09 67 78 4a 6f 62 09 |cument..|..gxJob.|
|00000ce0| 09 09 64 6f 63 75 6d 65 | 6e 74 4a 6f 62 3b 09 09 |..docume|ntJob;..|
|00000cf0| 09 09 2f 2f 20 4a 6f 62 | 20 62 6f 75 6e 64 20 74 |..// Job| bound t|
|00000d00| 6f 20 74 68 69 73 20 64 | 6f 63 75 6d 65 6e 74 2e |o this d|ocument.|
|00000d10| 0d 09 09 67 78 46 6f 72 | 6d 61 74 09 09 70 61 67 |...gxFor|mat..pag|
|00000d20| 65 46 6f 72 6d 61 74 5b | 6b 4d 61 78 50 61 67 65 |eFormat[|kMaxPage|
|00000d30| 73 5d 3b 09 09 2f 2f 20 | 66 6f 72 6d 61 74 20 66 |s];..// |format f|
|00000d40| 6f 72 20 65 61 63 68 20 | 70 61 67 65 2e 20 20 49 |or each |page. I|
|00000d50| 66 20 6e 69 6c 2c 20 77 | 65 20 75 73 65 0d 09 09 |f nil, w|e use...|
|00000d60| 09 09 09 09 09 09 09 09 | 09 09 09 2f 2f 20 74 68 |........|...// th|
|00000d70| 65 20 6a 6f 62 20 66 6f | 72 6d 61 74 2e 0d 0d 09 |e job fo|rmat....|
|00000d80| 09 6c 6f 6e 67 09 09 09 | 6e 75 6d 50 61 67 65 73 |.long...|numPages|
|00000d90| 3b 09 09 09 09 09 2f 2f | 20 4e 75 6d 62 65 72 20 |;.....//| Number |
|00000da0| 6f 66 20 70 61 67 65 73 | 20 69 6e 20 74 68 69 73 |of pages| in this|
|00000db0| 20 64 6f 63 75 6d 65 6e | 74 2e 0d 09 09 6c 6f 6e | documen|t....lon|
|00000dc0| 67 09 09 09 63 75 72 50 | 61 67 65 3b 09 09 09 09 |g...curP|age;....|
|00000dd0| 09 2f 2f 20 54 68 65 20 | 63 75 72 72 65 6e 74 20 |.// The |current |
|00000de0| 70 61 67 65 20 74 68 61 | 74 20 77 65 27 72 65 20 |page tha|t we're |
|00000df0| 6c 6f 6f 6b 69 6e 67 20 | 61 74 2e 0d 09 09 46 53 |looking |at....FS|
|00000e00| 53 70 65 63 09 09 09 64 | 6f 63 75 6d 65 6e 74 46 |Spec...d|ocumentF|
|00000e10| 53 53 70 65 63 3b 09 09 | 09 09 2f 2f 20 54 68 65 |SSpec;..|..// The|
|00000e20| 20 66 69 6c 65 20 73 70 | 65 63 69 66 69 63 61 74 | file sp|ecificat|
|00000e30| 69 6f 6e 20 66 6f 72 20 | 74 68 69 73 20 64 6f 63 |ion for |this doc|
|00000e40| 75 6d 65 6e 74 2e 0d 09 | 09 53 74 72 33 31 09 09 |ument...|.Str31..|
|00000e50| 09 64 6f 63 75 6d 65 6e | 74 54 69 74 6c 65 3b 09 |.documen|tTitle;.|
|00000e60| 09 09 09 2f 2f 20 54 68 | 65 20 74 69 74 6c 65 20 |...// Th|e title |
|00000e70| 6f 66 20 74 68 69 73 20 | 64 6f 63 75 6d 65 6e 74 |of this |document|
|00000e80| 20 28 73 75 63 68 0d 09 | 09 09 09 09 09 09 09 09 | (such..|........|
|00000e90| 09 09 09 09 2f 2f 20 61 | 73 20 22 55 6e 74 69 74 |....// a|s "Untit|
|00000ea0| 6c 65 64 22 29 2e 0d 09 | 09 57 69 6e 64 6f 77 50 |led")...|.WindowP|
|00000eb0| 74 72 09 09 64 6f 63 75 | 6d 65 6e 74 57 69 6e 64 |tr..docu|mentWind|
|00000ec0| 6f 77 3b 09 09 09 09 2f | 2f 20 54 68 65 20 77 69 |ow;..../|/ The wi|
|00000ed0| 6e 64 6f 77 20 66 6f 72 | 20 74 68 69 73 20 64 6f |ndow for| this do|
|00000ee0| 63 75 6d 65 6e 74 2e 0d | 7d 20 4d 79 44 6f 63 75 |cument..|} MyDocu|
|00000ef0| 6d 65 6e 74 52 65 63 2c | 20 2a 4d 79 44 6f 63 75 |mentRec,| *MyDocu|
|00000f00| 6d 65 6e 74 50 74 72 3b | 0d 0d 0d 74 79 70 65 64 |mentPtr;|...typed|
|00000f10| 65 66 20 73 74 72 75 63 | 74 20 4d 79 53 70 6f 6f |ef struc|t MySpoo|
|00000f20| 6c 44 61 74 61 52 65 63 | 20 7b 0d 09 09 67 78 52 |lDataRec| {...gxR|
|00000f30| 65 63 74 61 6e 67 6c 65 | 09 09 70 61 67 65 41 72 |ectangle|..pageAr|
|00000f40| 65 61 3b 09 09 09 09 09 | 2f 2f 20 50 61 67 65 20 |ea;.....|// Page |
|00000f50| 72 65 63 74 61 6e 67 6c | 65 2e 0d 09 09 67 78 56 |rectangl|e....gxV|
|00000f60| 69 65 77 50 6f 72 74 09 | 09 70 72 69 6e 74 56 69 |iewPort.|.printVi|
|00000f70| 65 77 50 6f 72 74 3b 09 | 09 09 09 2f 2f 20 56 69 |ewPort;.|...// Vi|
|00000f80| 65 77 50 6f 72 74 20 77 | 65 27 72 65 20 70 72 69 |ewPort w|e're pri|
|00000f90| 6e 74 69 6e 67 20 77 69 | 74 68 2e 0d 7d 20 4d 79 |nting wi|th..} My|
|00000fa0| 53 70 6f 6f 6c 44 61 74 | 61 52 65 63 2c 20 2a 4d |SpoolDat|aRec, *M|
|00000fb0| 79 53 70 6f 6f 6c 44 61 | 74 61 50 74 72 3b 0d 0d |ySpoolDa|taPtr;..|
|00000fc0| 0d 2f 2f 20 67 6c 6f 62 | 61 6c 73 20 66 72 6f 6d |.// glob|als from|
|00000fd0| 20 6d 61 69 6e 2e 63 3a | 0d 0d 65 78 74 65 72 6e | main.c:|..extern|
|00000fe0| 20 73 68 6f 72 74 20 09 | 09 09 09 67 41 70 70 52 | short .|...gAppR|
|00000ff0| 65 73 52 65 66 4e 75 6d | 3b 0d 65 78 74 65 72 6e |esRefNum|;.extern|
|00001000| 20 52 65 63 74 20 09 09 | 09 09 67 57 69 6e 64 6f | Rect ..|..gWindo|
|00001010| 77 52 65 63 74 3b 0d 65 | 78 74 65 72 6e 20 42 6f |wRect;.e|xtern Bo|
|00001020| 6f 6c 65 61 6e 09 09 09 | 09 67 51 75 69 74 41 66 |olean...|.gQuitAf|
|00001030| 74 65 72 50 72 69 6e 74 | 69 6e 67 2c 20 67 51 75 |terPrint|ing, gQu|
|00001040| 69 74 74 69 6e 67 2c 20 | 67 53 79 73 74 65 6d 53 |itting, |gSystemS|
|00001050| 65 76 65 6e 49 73 50 72 | 65 73 65 6e 74 3b 0d 65 |evenIsPr|esent;.e|
|00001060| 78 74 65 72 6e 20 42 6f | 6f 6c 65 61 6e 09 09 09 |xtern Bo|olean...|
|00001070| 09 67 47 58 49 73 50 72 | 65 73 65 6e 74 2c 20 67 |.gGXIsPr|esent, g|
|00001080| 49 6e 50 72 69 6e 74 44 | 69 61 6c 6f 67 3b 0d 65 |InPrintD|ialog;.e|
|00001090| 78 74 65 72 6e 20 6c 6f | 6e 67 09 09 09 09 09 67 |xtern lo|ng.....g|
|000010a0| 53 6c 65 65 70 3b 0d 65 | 78 74 65 72 6e 20 67 78 |Sleep;.e|xtern gx|
|000010b0| 47 72 61 70 68 69 63 73 | 43 6c 69 65 6e 74 09 09 |Graphics|Client..|
|000010c0| 67 43 6c 69 65 6e 74 3b | 0d 0d 09 09 09 09 09 2f |gClient;|......./|
|000010d0| 2f 20 20 50 72 6f 74 6f | 74 79 70 65 73 3a 20 2f |/ Proto|types: /|
|000010e0| 2f 0d 0d 2f 2f 20 6d 61 | 69 6e 2e 63 3a 0d 0d 76 |/..// ma|in.c:..v|
|000010f0| 6f 69 64 09 09 09 4d 79 | 49 6e 69 74 69 61 6c 69 |oid...My|Initiali|
|00001100| 7a 65 28 76 6f 69 64 29 | 3b 0d 76 6f 69 64 09 09 |ze(void)|;.void..|
|00001110| 09 4d 79 43 68 65 63 6b | 43 6f 6e 66 69 67 28 76 |.MyCheck|Config(v|
|00001120| 6f 69 64 29 3b 0d 76 6f | 69 64 09 09 09 4d 79 49 |oid);.vo|id...MyI|
|00001130| 6e 69 74 47 58 49 66 50 | 72 65 73 65 6e 74 28 76 |nitGXIfP|resent(v|
|00001140| 6f 69 64 29 3b 0d 76 6f | 69 64 09 09 09 4d 79 43 |oid);.vo|id...MyC|
|00001150| 6c 65 61 6e 55 70 47 58 | 49 66 50 72 65 73 65 6e |leanUpGX|IfPresen|
|00001160| 74 28 76 6f 69 64 29 3b | 0d 4f 53 45 72 72 09 09 |t(void);|.OSErr..|
|00001170| 09 4d 79 50 72 69 6e 74 | 69 6e 67 45 76 65 6e 74 |.MyPrint|ingEvent|
|00001180| 4f 76 65 72 72 69 64 65 | 28 45 76 65 6e 74 52 65 |Override|(EventRe|
|00001190| 63 6f 72 64 20 2a 61 6e | 45 76 65 6e 74 2c 20 42 |cord *an|Event, B|
|000011a0| 6f 6f 6c 65 61 6e 20 66 | 69 6c 74 65 72 45 76 65 |oolean f|ilterEve|
|000011b0| 6e 74 29 3b 0d 76 6f 69 | 64 09 09 09 6d 61 69 6e |nt);.voi|d...main|
|000011c0| 28 76 6f 69 64 29 3b 0d | 0d 2f 2f 20 65 76 65 6e |(void);.|.// even|
|000011d0| 74 73 2e 63 0d 0d 76 6f | 69 64 09 09 09 4d 79 45 |ts.c..vo|id...MyE|
|000011e0| 76 65 6e 74 4c 6f 6f 70 | 28 76 6f 69 64 29 3b 0d |ventLoop|(void);.|
|000011f0| 76 6f 69 64 09 09 09 4d | 79 44 6f 45 76 65 6e 74 |void...M|yDoEvent|
|00001200| 28 45 76 65 6e 74 52 65 | 63 6f 72 64 20 2a 74 68 |(EventRe|cord *th|
|00001210| 65 45 76 65 6e 74 29 3b | 0d 76 6f 69 64 09 09 09 |eEvent);|.void...|
|00001220| 4d 79 44 6f 41 45 49 6e | 73 74 61 6c 6c 61 74 69 |MyDoAEIn|stallati|
|00001230| 6f 6e 28 76 6f 69 64 29 | 3b 0d 70 61 73 63 61 6c |on(void)|;.pascal|
|00001240| 20 4f 53 45 72 72 09 4d | 79 48 61 6e 64 6c 65 4f | OSErr.M|yHandleO|
|00001250| 41 50 50 28 41 70 70 6c | 65 45 76 65 6e 74 20 2a |APP(Appl|eEvent *|
|00001260| 74 68 65 41 70 70 6c 65 | 45 76 65 6e 74 2c 20 41 |theApple|Event, A|
|00001270| 70 70 6c 65 45 76 65 6e | 74 20 2a 72 65 70 6c 79 |ppleEven|t *reply|
|00001280| 2c 20 6c 6f 6e 67 20 6d | 79 52 65 66 43 6f 6e 29 |, long m|yRefCon)|
|00001290| 3b 0d 70 61 73 63 61 6c | 20 4f 53 45 72 72 09 4d |;.pascal| OSErr.M|
|000012a0| 79 48 61 6e 64 6c 65 51 | 55 49 54 28 41 70 70 6c |yHandleQ|UIT(Appl|
|000012b0| 65 45 76 65 6e 74 20 2a | 74 68 65 41 70 70 6c 65 |eEvent *|theApple|
|000012c0| 45 76 65 6e 74 2c 20 41 | 70 70 6c 65 45 76 65 6e |Event, A|ppleEven|
|000012d0| 74 20 2a 72 65 70 6c 79 | 2c 20 6c 6f 6e 67 20 6d |t *reply|, long m|
|000012e0| 79 52 65 66 43 6f 6e 29 | 3b 0d 70 61 73 63 61 6c |yRefCon)|;.pascal|
|000012f0| 20 4f 53 45 72 72 09 4d | 79 48 61 6e 64 6c 65 4f | OSErr.M|yHandleO|
|00001300| 44 4f 43 28 41 70 70 6c | 65 45 76 65 6e 74 20 2a |DOC(Appl|eEvent *|
|00001310| 74 68 65 41 70 70 6c 65 | 45 76 65 6e 74 2c 20 41 |theApple|Event, A|
|00001320| 70 70 6c 65 45 76 65 6e | 74 20 2a 72 65 70 6c 79 |ppleEven|t *reply|
|00001330| 2c 20 6c 6f 6e 67 20 6d | 79 52 65 66 43 6f 6e 29 |, long m|yRefCon)|
|00001340| 3b 0d 70 61 73 63 61 6c | 20 4f 53 45 72 72 09 4d |;.pascal| OSErr.M|
|00001350| 79 48 61 6e 64 6c 65 50 | 44 4f 43 28 41 70 70 6c |yHandleP|DOC(Appl|
|00001360| 65 45 76 65 6e 74 20 2a | 74 68 65 41 70 70 6c 65 |eEvent *|theApple|
|00001370| 45 76 65 6e 74 2c 20 41 | 70 70 6c 65 45 76 65 6e |Event, A|ppleEven|
|00001380| 74 20 2a 72 65 70 6c 79 | 2c 20 6c 6f 6e 67 20 6d |t *reply|, long m|
|00001390| 79 52 65 66 43 6f 6e 29 | 3b 0d 4f 53 45 72 72 09 |yRefCon)|;.OSErr.|
|000013a0| 09 09 4d 79 43 68 65 63 | 6b 41 45 50 61 72 61 6d |..MyChec|kAEParam|
|000013b0| 73 28 41 70 70 6c 65 45 | 76 65 6e 74 20 2a 74 68 |s(AppleE|vent *th|
|000013c0| 65 41 70 70 6c 65 45 76 | 65 6e 74 29 3b 0d 0d 2f |eAppleEv|ent);../|
|000013d0| 2f 20 66 69 6c 65 2e 63 | 0d 0d 4f 53 45 72 72 09 |/ file.c|..OSErr.|
|000013e0| 09 09 4d 79 4c 6f 61 64 | 44 6f 63 75 6d 65 6e 74 |..MyLoad|Document|
|000013f0| 28 4d 79 44 6f 63 75 6d | 65 6e 74 50 74 72 20 77 |(MyDocum|entPtr w|
|00001400| 68 69 63 68 44 6f 63 75 | 6d 65 6e 74 29 3b 0d 4f |hichDocu|ment);.O|
|00001410| 53 45 72 72 09 09 09 4d | 79 46 53 4c 6f 61 64 44 |SErr...M|yFSLoadD|
|00001420| 6f 63 75 6d 65 6e 74 28 | 4d 79 44 6f 63 75 6d 65 |ocument(|MyDocume|
|00001430| 6e 74 50 74 72 20 64 65 | 73 74 44 6f 63 75 6d 65 |ntPtr de|stDocume|
|00001440| 6e 74 2c 20 46 53 53 70 | 65 63 20 2a 64 6f 63 46 |nt, FSSp|ec *docF|
|00001450| 53 53 70 65 63 2c 20 42 | 6f 6f 6c 65 61 6e 20 66 |SSpec, B|oolean f|
|00001460| 6f 72 50 72 69 6e 74 69 | 6e 67 29 3b 0d 42 6f 6f |orPrinti|ng);.Boo|
|00001470| 6c 65 61 6e 09 09 09 4d | 79 49 73 57 69 6e 64 6f |lean...M|yIsWindo|
|00001480| 77 41 6c 72 65 61 64 79 | 4f 70 65 6e 28 46 53 53 |wAlready|Open(FSS|
|00001490| 70 65 63 20 2a 77 68 69 | 63 68 46 53 53 70 65 63 |pec *whi|chFSSpec|
|000014a0| 29 3b 0d 4f 53 45 72 72 | 09 09 09 4d 79 53 61 76 |);.OSErr|...MySav|
|000014b0| 65 44 6f 63 75 6d 65 6e | 74 28 4d 79 44 6f 63 75 |eDocumen|t(MyDocu|
|000014c0| 6d 65 6e 74 50 74 72 20 | 6d 79 44 6f 63 75 6d 65 |mentPtr |myDocume|
|000014d0| 6e 74 2c 20 42 6f 6f 6c | 65 61 6e 20 64 6f 69 6e |nt, Bool|ean doin|
|000014e0| 67 53 61 76 65 41 73 29 | 3b 0d 4f 53 45 72 72 09 |gSaveAs)|;.OSErr.|
|000014f0| 09 09 4d 79 53 61 76 65 | 50 61 67 65 43 6f 75 6e |..MySave|PageCoun|
|00001500| 74 28 4d 79 44 6f 63 75 | 6d 65 6e 74 50 74 72 20 |t(MyDocu|mentPtr |
|00001510| 77 68 69 63 68 44 6f 63 | 75 6d 65 6e 74 2c 20 73 |whichDoc|ument, s|
|00001520| 68 6f 72 74 20 72 65 73 | 52 65 66 4e 75 6d 29 3b |hort res|RefNum);|
|00001530| 0d 6c 6f 6e 67 09 09 09 | 4d 79 4c 6f 61 64 50 61 |.long...|MyLoadPa|
|00001540| 67 65 43 6f 75 6e 74 28 | 73 68 6f 72 74 20 72 65 |geCount(|short re|
|00001550| 73 52 65 66 4e 75 6d 29 | 3b 0d 4f 53 45 72 72 09 |sRefNum)|;.OSErr.|
|00001560| 09 09 4d 79 53 61 76 65 | 46 6f 72 6d 61 74 52 65 |..MySave|FormatRe|
|00001570| 66 73 28 4d 79 44 6f 63 | 75 6d 65 6e 74 50 74 72 |fs(MyDoc|umentPtr|
|00001580| 20 77 68 69 63 68 44 6f | 63 75 6d 65 6e 74 29 3b | whichDo|cument);|
|00001590| 0d 4f 53 45 72 72 09 09 | 09 4d 79 43 72 65 61 74 |.OSErr..|.MyCreat|
|000015a0| 65 46 6f 72 6d 61 74 49 | 6e 64 65 78 4c 69 73 74 |eFormatI|ndexList|
|000015b0| 28 4d 79 44 6f 63 75 6d | 65 6e 74 50 74 72 20 77 |(MyDocum|entPtr w|
|000015c0| 68 69 63 68 44 6f 63 75 | 6d 65 6e 74 2c 20 48 61 |hichDocu|ment, Ha|
|000015d0| 6e 64 6c 65 20 2a 74 68 | 65 46 6f 72 6d 61 74 49 |ndle *th|eFormatI|
|000015e0| 64 78 4c 69 73 74 29 3b | 0d 4f 53 45 72 72 09 09 |dxList);|.OSErr..|
|000015f0| 09 4d 79 41 64 6a 75 73 | 74 46 6f 72 6d 61 74 73 |.MyAdjus|tFormats|
|00001600| 28 4d 79 44 6f 63 75 6d | 65 6e 74 50 74 72 20 77 |(MyDocum|entPtr w|
|00001610| 68 69 63 68 44 6f 63 75 | 6d 65 6e 74 29 3b 0d 4f |hichDocu|ment);.O|
|00001620| 53 45 72 72 09 09 09 4d | 79 53 61 76 65 50 72 69 |SErr...M|ySavePri|
|00001630| 6e 74 49 6e 66 6f 28 4d | 79 44 6f 63 75 6d 65 6e |ntInfo(M|yDocumen|
|00001640| 74 50 74 72 20 77 68 69 | 63 68 44 6f 63 75 6d 65 |tPtr whi|chDocume|
|00001650| 6e 74 2c 20 73 68 6f 72 | 74 20 72 65 73 52 65 66 |nt, shor|t resRef|
|00001660| 4e 75 6d 29 3b 0d 4f 53 | 45 72 72 09 09 09 4d 79 |Num);.OS|Err...My|
|00001670| 4c 6f 61 64 50 72 69 6e | 74 49 6e 66 6f 28 4d 79 |LoadPrin|tInfo(My|
|00001680| 44 6f 63 75 6d 65 6e 74 | 50 74 72 20 77 68 69 63 |Document|Ptr whic|
|00001690| 68 44 6f 63 75 6d 65 6e | 74 2c 20 73 68 6f 72 74 |hDocumen|t, short|
|000016a0| 20 72 65 73 52 65 66 4e | 75 6d 29 3b 0d 0d 2f 2f | resRefN|um);..//|
|000016b0| 20 6d 65 6e 75 73 20 26 | 20 77 69 6e 64 6f 77 73 | menus &| windows|
|000016c0| 2e 63 3a 0d 0d 4f 53 45 | 72 72 09 09 09 4d 79 43 |.c:..OSE|rr...MyC|
|000016d0| 72 65 61 74 65 44 6f 63 | 75 6d 65 6e 74 28 63 68 |reateDoc|ument(ch|
|000016e0| 61 72 20 2a 74 69 74 6c | 65 2c 20 4d 79 44 6f 63 |ar *titl|e, MyDoc|
|000016f0| 75 6d 65 6e 74 50 74 72 | 20 2a 63 72 65 61 74 65 |umentPtr| *create|
|00001700| 64 44 6f 63 75 6d 65 6e | 74 29 3b 0d 76 6f 69 64 |dDocumen|t);.void|
|00001710| 09 09 09 4d 79 44 69 73 | 70 6f 73 65 44 6f 63 75 |...MyDis|poseDocu|
|00001720| 6d 65 6e 74 28 4d 79 44 | 6f 63 75 6d 65 6e 74 50 |ment(MyD|ocumentP|
|00001730| 74 72 20 77 68 69 63 68 | 44 6f 63 75 6d 65 6e 74 |tr which|Document|
|00001740| 29 3b 0d 4f 53 45 72 72 | 09 09 09 4d 79 49 6e 73 |);.OSErr|...MyIns|
|00001750| 65 72 74 50 61 67 65 28 | 4d 79 44 6f 63 75 6d 65 |ertPage(|MyDocume|
|00001760| 6e 74 50 74 72 20 77 68 | 69 63 68 44 6f 63 75 6d |ntPtr wh|ichDocum|
|00001770| 65 6e 74 2c 20 6c 6f 6e | 67 20 2a 77 68 69 63 68 |ent, lon|g *which|
|00001780| 50 61 67 65 29 3b 0d 76 | 6f 69 64 09 09 09 4d 79 |Page);.v|oid...My|
|00001790| 44 69 73 70 6f 73 65 50 | 61 67 65 28 4d 79 44 6f |DisposeP|age(MyDo|
|000017a0| 63 75 6d 65 6e 74 50 74 | 72 20 77 68 69 63 68 44 |cumentPt|r whichD|
|000017b0| 6f 63 75 6d 65 6e 74 2c | 20 6c 6f 6e 67 20 77 68 |ocument,| long wh|
|000017c0| 69 63 68 50 61 67 65 29 | 3b 0d 76 6f 69 64 09 09 |ichPage)|;.void..|
|000017d0| 09 4d 79 55 70 64 61 74 | 65 57 69 6e 64 6f 77 28 |.MyUpdat|eWindow(|
|000017e0| 57 69 6e 64 6f 77 50 74 | 72 20 77 68 69 63 68 57 |WindowPt|r whichW|
|000017f0| 69 6e 64 6f 77 29 3b 0d | 76 6f 69 64 09 09 09 4d |indow);.|void...M|
|00001800| 79 44 72 61 77 43 6f 6e | 74 65 6e 74 73 28 57 69 |yDrawCon|tents(Wi|
|00001810| 6e 64 6f 77 50 74 72 20 | 77 68 69 63 68 57 69 6e |ndowPtr |whichWin|
|00001820| 64 6f 77 29 3b 0d 76 6f | 69 64 09 09 09 4d 79 44 |dow);.vo|id...MyD|
|00001830| 72 61 77 50 69 63 43 6f | 6d 6d 65 6e 74 73 28 76 |rawPicCo|mments(v|
|00001840| 6f 69 64 29 3b 0d 76 6f | 69 64 09 09 09 4d 79 53 |oid);.vo|id...MyS|
|00001850| 65 6e 64 50 6f 73 74 53 | 63 72 69 70 74 28 53 74 |endPostS|cript(St|
|00001860| 72 32 35 35 20 74 68 65 | 50 6f 73 74 53 63 72 69 |r255 the|PostScri|
|00001870| 70 74 29 3b 0d 76 6f 69 | 64 09 09 09 4d 79 41 64 |pt);.voi|d...MyAd|
|00001880| 6a 75 73 74 4d 65 6e 75 | 73 28 76 6f 69 64 29 3b |justMenu|s(void);|
|00001890| 0d 76 6f 69 64 09 09 09 | 4d 79 41 64 6a 75 73 74 |.void...|MyAdjust|
|000018a0| 4d 65 6e 75 73 46 6f 72 | 50 72 69 6e 74 44 69 61 |MenusFor|PrintDia|
|000018b0| 6c 6f 67 73 28 42 6f 6f | 6c 65 61 6e 20 64 69 61 |logs(Boo|lean dia|
|000018c0| 6c 6f 67 47 6f 69 6e 67 | 55 70 29 3b 0d 76 6f 69 |logGoing|Up);.voi|
|000018d0| 64 09 09 09 4d 79 44 6f | 4d 65 6e 75 43 6f 6d 6d |d...MyDo|MenuComm|
|000018e0| 61 6e 64 28 6c 6f 6e 67 | 20 6d 65 6e 75 52 65 73 |and(long| menuRes|
|000018f0| 75 6c 74 29 3b 0d 76 6f | 69 64 09 09 09 4d 79 43 |ult);.vo|id...MyC|
|00001900| 6f 6e 76 65 72 74 4d 65 | 6e 75 49 74 65 6d 28 73 |onvertMe|nuItem(s|
|00001910| 68 6f 72 74 20 2a 6d 65 | 6e 75 49 44 2c 20 73 68 |hort *me|nuID, sh|
|00001920| 6f 72 74 20 2a 6d 65 6e | 75 49 74 65 6d 29 3b 0d |ort *men|uItem);.|
|00001930| 4d 79 44 6f 63 75 6d 65 | 6e 74 50 74 72 09 4d 79 |MyDocume|ntPtr.My|
|00001940| 47 65 74 44 6f 63 50 74 | 72 28 57 69 6e 64 6f 77 |GetDocPt|r(Window|
|00001950| 50 74 72 20 77 68 69 63 | 68 57 69 6e 64 6f 77 29 |Ptr whic|hWindow)|
|00001960| 3b 0d 0d 2f 2f 20 70 72 | 69 6e 74 69 6e 67 2e 63 |;..// pr|inting.c|
|00001970| 3a 0d 0d 4f 53 45 72 72 | 09 09 09 4d 79 50 72 69 |:..OSErr|...MyPri|
|00001980| 6e 74 44 6f 63 75 6d 65 | 6e 74 28 4d 79 44 6f 63 |ntDocume|nt(MyDoc|
|00001990| 75 6d 65 6e 74 50 74 72 | 20 77 68 69 63 68 44 6f |umentPtr| whichDo|
|000019a0| 63 75 6d 65 6e 74 29 3b | 0d 4f 53 45 72 72 09 09 |cument);|.OSErr..|
|000019b0| 09 4d 79 50 72 69 6e 74 | 4f 6e 65 43 6f 70 79 28 |.MyPrint|OneCopy(|
|000019c0| 4d 79 44 6f 63 75 6d 65 | 6e 74 50 74 72 20 77 68 |MyDocume|ntPtr wh|
|000019d0| 69 63 68 44 6f 63 75 6d | 65 6e 74 29 3b 0d 4f 53 |ichDocum|ent);.OS|
|000019e0| 45 72 72 09 09 09 4d 79 | 51 44 50 72 69 6e 74 4c |Err...My|QDPrintL|
|000019f0| 6f 6f 70 28 4d 79 44 6f | 63 75 6d 65 6e 74 50 74 |oop(MyDo|cumentPt|
|00001a00| 72 20 77 68 69 63 68 44 | 6f 63 75 6d 65 6e 74 29 |r whichD|ocument)|
|00001a10| 3b 0d 4f 53 45 72 72 09 | 09 09 4d 79 47 58 50 72 |;.OSErr.|..MyGXPr|
|00001a20| 69 6e 74 4c 6f 6f 70 28 | 4d 79 44 6f 63 75 6d 65 |intLoop(|MyDocume|
|00001a30| 6e 74 50 74 72 20 77 68 | 69 63 68 44 6f 63 75 6d |ntPtr wh|ichDocum|
|00001a40| 65 6e 74 29 3b 0d 4f 53 | 45 72 72 09 09 09 4d 79 |ent);.OS|Err...My|
|00001a50| 50 72 69 6e 74 41 53 68 | 61 70 65 28 67 78 53 68 |PrintASh|ape(gxSh|
|00001a60| 61 70 65 20 63 75 72 72 | 65 6e 74 53 68 61 70 65 |ape curr|entShape|
|00001a70| 2c 20 6c 6f 6e 67 20 72 | 65 66 43 6f 6e 29 3b 0d |, long r|efCon);.|
|00001a80| 42 6f 6f 6c 65 61 6e 09 | 09 09 4d 79 44 6f 50 61 |Boolean.|..MyDoPa|
|00001a90| 67 65 53 65 74 75 70 28 | 4d 79 44 6f 63 75 6d 65 |geSetup(|MyDocume|
|00001aa0| 6e 74 50 74 72 20 77 68 | 69 63 68 44 6f 63 75 6d |ntPtr wh|ichDocum|
|00001ab0| 65 6e 74 29 3b 0d 42 6f | 6f 6c 65 61 6e 09 09 09 |ent);.Bo|olean...|
|00001ac0| 4d 79 44 6f 43 75 73 74 | 6f 6d 50 61 67 65 53 65 |MyDoCust|omPageSe|
|00001ad0| 74 75 70 28 4d 79 44 6f | 63 75 6d 65 6e 74 50 74 |tup(MyDo|cumentPt|
|00001ae0| 72 20 77 68 69 63 68 44 | 6f 63 75 6d 65 6e 74 29 |r whichD|ocument)|
|00001af0| 3b 0d 76 6f 69 64 09 09 | 09 4d 79 52 65 70 61 67 |;.void..|.MyRepag|
|00001b00| 69 6e 61 74 65 44 6f 63 | 28 4d 79 44 6f 63 75 6d |inateDoc|(MyDocum|
|00001b10| 65 6e 74 50 74 72 20 77 | 68 69 63 68 44 6f 63 75 |entPtr w|hichDocu|
|00001b20| 6d 65 6e 74 29 3b 0d 4f | 53 45 72 72 09 09 09 4d |ment);.O|SErr...M|
|00001b30| 79 52 65 70 6c 61 63 65 | 43 6f 6c 6c 65 63 74 69 |yReplace|Collecti|
|00001b40| 6f 6e 49 74 65 6d 28 76 | 6f 69 64 20 2a 6e 65 77 |onItem(v|oid *new|
|00001b50| 44 61 74 61 2c 20 6c 6f | 6e 67 20 63 6f 6c 6c 65 |Data, lo|ng colle|
|00001b60| 63 74 53 69 7a 65 2c 0d | 09 09 09 09 09 09 09 09 |ctSize,.|........|
|00001b70| 09 09 4f 53 54 79 70 65 | 20 63 6f 6c 6c 65 63 74 |..OSType| collect|
|00001b80| 54 79 70 65 2c 20 6c 6f | 6e 67 20 63 6f 6c 6c 65 |Type, lo|ng colle|
|00001b90| 63 74 49 44 2c 0d 09 09 | 09 09 09 09 09 09 09 09 |ctID,...|........|
|00001ba0| 43 6f 6c 6c 65 63 74 69 | 6f 6e 20 77 68 69 63 68 |Collecti|on which|
|00001bb0| 43 6f 6c 6c 65 63 74 69 | 6f 6e 2c 0d 09 09 09 09 |Collecti|on,.....|
|00001bc0| 09 09 09 09 09 09 50 74 | 72 20 2a 6f 6c 64 44 61 |......Pt|r *oldDa|
|00001bd0| 74 61 2c 20 6c 6f 6e 67 | 20 2a 6f 6c 64 44 61 74 |ta, long| *oldDat|
|00001be0| 61 53 69 7a 65 29 3b 0d | 0d 2f 2f 20 72 65 73 6f |aSize);.|.// reso|
|00001bf0| 75 72 63 65 20 26 20 6d | 65 6e 75 20 69 74 65 6d |urce & m|enu item|
|00001c00| 20 65 71 75 61 74 65 73 | 3a 0d 0d 23 64 65 66 69 | equates|:..#defi|
|00001c10| 6e 65 20 72 4d 65 6e 75 | 42 61 72 09 09 31 32 38 |ne rMenu|Bar..128|
|00001c20| 0d 23 64 65 66 69 6e 65 | 20 6d 41 70 70 6c 65 09 |.#define| mApple.|
|00001c30| 09 09 31 32 38 0d 23 64 | 65 66 69 6e 65 09 20 69 |..128.#d|efine. i|
|00001c40| 41 62 6f 75 74 09 09 09 | 09 31 0d 0d 23 64 65 66 |About...|.1..#def|
|00001c50| 69 6e 65 20 6d 46 69 6c | 65 09 09 09 31 32 39 0d |ine mFil|e...129.|
|00001c60| 23 64 65 66 69 6e 65 09 | 20 69 4e 65 77 09 09 09 |#define.| iNew...|
|00001c70| 09 31 0d 23 64 65 66 69 | 6e 65 09 20 69 4f 70 65 |.1.#defi|ne. iOpe|
|00001c80| 6e 09 09 09 09 32 0d 23 | 64 65 66 69 6e 65 09 20 |n....2.#|define. |
|00001c90| 69 43 6c 6f 73 65 09 09 | 09 09 33 0d 23 64 65 66 |iClose..|..3.#def|
|00001ca0| 69 6e 65 09 20 69 53 61 | 76 65 09 09 09 09 34 0d |ine. iSa|ve....4.|
|00001cb0| 23 64 65 66 69 6e 65 09 | 20 69 53 61 76 65 41 73 |#define.| iSaveAs|
|00001cc0| 09 09 09 35 0d 23 64 65 | 66 69 6e 65 09 20 69 50 |...5.#de|fine. iP|
|00001cd0| 61 67 65 53 65 74 75 70 | 09 09 09 37 0d 23 64 65 |ageSetup|...7.#de|
|00001ce0| 66 69 6e 65 09 20 69 43 | 75 73 74 6f 6d 50 61 67 |fine. iC|ustomPag|
|00001cf0| 65 53 65 74 75 70 09 38 | 0d 23 64 65 66 69 6e 65 |eSetup.8|.#define|
|00001d00| 09 20 69 50 72 69 6e 74 | 09 09 09 09 39 0d 23 64 |. iPrint|....9.#d|
|00001d10| 65 66 69 6e 65 09 20 69 | 50 72 69 6e 74 4f 6e 65 |efine. i|PrintOne|
|00001d20| 43 6f 70 79 09 09 31 30 | 0d 23 64 65 66 69 6e 65 |Copy..10|.#define|
|00001d30| 09 20 69 51 75 69 74 09 | 20 20 20 09 09 09 31 32 |. iQuit.| ...12|
|00001d40| 0d 0d 23 64 65 66 69 6e | 65 20 6d 45 64 69 74 09 |..#defin|e mEdit.|
|00001d50| 09 09 31 33 30 0d 23 64 | 65 66 69 6e 65 09 20 69 |..130.#d|efine. i|
|00001d60| 55 6e 64 6f 09 09 09 09 | 31 0d 23 64 65 66 69 6e |Undo....|1.#defin|
|00001d70| 65 09 20 69 43 75 74 09 | 09 09 09 33 0d 23 64 65 |e. iCut.|...3.#de|
|00001d80| 66 69 6e 65 09 20 69 43 | 6f 70 79 09 09 09 09 34 |fine. iC|opy....4|
|00001d90| 0d 23 64 65 66 69 6e 65 | 09 20 69 50 61 73 74 65 |.#define|. iPaste|
|00001da0| 09 09 09 09 35 0d 23 64 | 65 66 69 6e 65 09 20 69 |....5.#d|efine. i|
|00001db0| 43 6c 65 61 72 09 09 09 | 09 36 0d 0d 23 64 65 66 |Clear...|.6..#def|
|00001dc0| 69 6e 65 20 6d 44 6f 63 | 75 6d 65 6e 74 09 09 31 |ine mDoc|ument..1|
|00001dd0| 33 31 0d 23 64 65 66 69 | 6e 65 09 20 69 49 6e 73 |31.#defi|ne. iIns|
|00001de0| 65 72 74 50 61 67 65 09 | 09 31 0d 23 64 65 66 69 |ertPage.|.1.#defi|
|00001df0| 6e 65 09 20 69 44 65 6c | 65 74 65 50 61 67 65 09 |ne. iDel|etePage.|
|00001e00| 09 32 0d 23 64 65 66 69 | 6e 65 09 20 69 41 68 65 |.2.#defi|ne. iAhe|
|00001e10| 61 64 50 61 67 65 09 09 | 09 34 0d 23 64 65 66 69 |adPage..|.4.#defi|
|00001e20| 6e 65 09 20 69 42 61 63 | 6b 50 61 67 65 09 09 09 |ne. iBac|kPage...|
|00001e30| 35 0d 0d 0d 0d 00 00 00 | 00 00 00 00 00 00 00 00 |5.......|........|
|00001e40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e60| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001e80| 00 00 01 00 00 00 01 d8 | 00 00 00 d8 00 00 00 3e |........|.......>|
|00001e90| 00 00 16 ce 12 53 79 73 | 74 65 6d 20 52 65 73 6f |.....Sys|tem Reso|
|00001ea0| 75 72 63 65 73 20 c4 00 | 00 00 00 00 00 00 00 00 |urces ..|........|
|00001eb0| 0f 53 69 6d 70 6c 65 20 | 53 61 6d 70 6c 65 2e 68 |.Simple |Sample.h|
|00001ec0| 02 00 00 00 54 45 58 54 | 4b 41 48 4c 01 00 00 3c |....TEXT|KAHL...<|
|00001ed0| 00 00 54 45 58 54 4b 41 | 48 4c 01 00 00 3c 00 00 |..TEXTKA|HL...<..|
|00001ee0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001ef0| 00 00 a8 b6 60 47 00 00 | 1d b5 00 00 02 16 00 00 |....`G..|........|
|00001f00| 00 00 00 00 00 00 00 00 | 00 00 03 fe 25 00 00 00 |........|....%...|
|00001f10| 17 5f 0d 54 65 63 68 4e | 6f 74 65 73 48 65 6c 70 |._.TechN|otesHelp|
|00001f20| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f30| 00 00 00 00 04 b9 25 00 | 00 00 17 79 00 00 00 00 |......%.|...y....|
|00001f40| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f50| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 04 1f |........|........|
|00001f60| 25 00 00 00 17 80 08 4d | 61 6b 65 46 69 6c 65 00 |%......M|akeFile.|
|00001f70| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001f80| 00 00 00 48 00 09 4d 6f | 6e 61 63 6f 00 00 00 00 |...H..Mo|naco....|
|00001f90| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|00001fa0| 00 00 00 00 00 00 00 03 | 00 04 00 95 00 1e 02 1b |........|........|
|00001fb0| 02 94 00 95 00 1e 02 1b | 02 94 aa 76 89 b5 00 00 |........|...v....|
|00001fc0| 04 c5 00 00 04 c5 00 00 | 00 00 01 00 00 00 00 88 |........|........|
|00001fd0| 00 05 00 00 0e ac 00 00 | 0e c3 07 67 6c 6f 62 61 |........|...globa|
|00001fe0| 6c 73 00 00 0f ba 00 00 | 0f cc 0b 50 72 6f 74 6f |ls......|...Proto|
|00001ff0| 74 79 70 65 73 3a 00 00 | 1a d4 00 00 1a f4 1d 72 |types:..|.......r|
|00002000| 65 73 6f 75 72 63 65 20 | 26 20 6d 65 6e 75 20 69 |esource |& menu i|
|00002010| 74 65 6d 20 65 71 75 61 | 74 65 c9 00 00 00 0b 64 |tem equa|te.....d|
|00002020| 00 00 0b 78 15 73 74 72 | 75 63 74 20 4d 79 44 6f |...x.str|uct MyDo|
|00002030| 63 75 6d 65 6e 74 52 65 | 63 00 00 00 0d fe 00 00 |cumentRe|c.......|
|00002040| 0e 13 15 73 74 72 75 63 | 74 20 4d 79 53 70 6f 6f |...struc|t MySpoo|
|00002050| 6c 44 61 74 61 52 65 63 | 00 00 01 00 00 00 01 d8 |lDataRec|........|
|00002060| 00 00 00 d8 00 00 00 3e | 00 4b 98 40 19 b6 00 00 |.......>|.K.@....|
|00002070| 00 1c 00 3e 00 00 4d 50 | 53 52 00 01 00 0a 03 ed |...>..MP|SR......|
|00002080| ff ff 00 00 00 00 00 00 | 00 00 03 ef ff ff 00 00 |........|........|
|00002090| 00 4c 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |.L......|........|
|000020a0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020b0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020c0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020d0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020e0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
|000020f0| 00 00 00 00 00 00 00 00 | 00 00 00 00 00 00 00 00 |........|........|
+--------+-------------------------+-------------------------+--------+--------+